#pragma once

#include "SpriteManager.h"
class CNewBullet
{
public:
	float _x, _y;
	int _timeaLive;
	float _vx, _vy;
	bool _alive;
	int _BulletType;
	int _countTime;
	CSprite *_Sprite;
public:
	CNewBullet();
	bool operator == (CNewBullet a)const;
	void SetVelocity(float ivx, float ivy);
	void SetLocation(float ix, float iy);
	void SetNewBullet(float X, float Y, int TimeaLive, float vX, float vY, int BulletType);
	void Reset();
	bool CheckALive();
	void Update();
	void Render();
	D3DXVECTOR2 GetPostion();
	~CNewBullet();
};
